#pragma once

#include <libz800.h>

#include "ui_DlgGyroCalib.h"

class DlgGyroCalib : public QDialog
				   , protected Ui_DlgGyroCalib
{
	Q_OBJECT

public:
	DlgGyroCalib(QWidget *parent = NULL);

public slots:
	void setDevice(z800_device *dev);
	void gyroSpeedChanged(const QVector3D &gyrSpeed);
	void eulerChanged(const QVector3D &euler);

protected slots:
	void sliderValueChanged(int value);

protected:
	z800_device *_dev;
	struct z800_calibration_data _data;
};
